package com.suda.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:zhuyongjie
 * @Description:Route构建
 * @Date 2019/6/14 19:13
 *****/
@Table(name="t_route")
public class Route implements Serializable{

	@Id
    @Column(name = "route_id")
	private String routeId;//路由id

    @Column(name = "vehicle_id")
	private String vehicleId;//货车id

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @Column(name = "arrival_time")
	private Date arrivalTime;//到达仓库时间

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @Column(name = "departure_time")
	private Date departureTime;//离开仓库时间

    @Column(name = "warehouse_id")
	private String warehouseId;//仓库id

    @Column(name = "to_warehouse_id")
	private String toWarehouseId;//前往下一个仓库id



	//get方法
	public String getRouteId() {
		return routeId;
	}

	//set方法
	public void setRouteId(String routeId) {
		this.routeId = routeId;
	}
	//get方法
	public String getVehicleId() {
		return vehicleId;
	}

	//set方法
	public void setVehicleId(String vehicleId) {
		this.vehicleId = vehicleId;
	}
	//get方法
	public Date getArrivalTime() {
		return arrivalTime;
	}

	//set方法
	public void setArrivalTime(Date arrivalTime) {
		this.arrivalTime = arrivalTime;
	}
	//get方法
	public Date getDepartureTime() {
		return departureTime;
	}

	//set方法
	public void setDepartureTime(Date departureTime) {
		this.departureTime = departureTime;
	}
	//get方法
	public String getWarehouseId() {
		return warehouseId;
	}

	//set方法
	public void setWarehouseId(String warehouseId) {
		this.warehouseId = warehouseId;
	}
	//get方法
	public String getToWarehouseId() {
		return toWarehouseId;
	}

	//set方法
	public void setToWarehouseId(String toWarehouseId) {
		this.toWarehouseId = toWarehouseId;
	}


}
